﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WareHouse.Domain.Warehouses
{
    /// <summary>
    /// 仓库表
    /// </summary>
    [SugarTable("Warehouse")]
    public class Warehouse1 : AuditInfo
    {
        /// <summary>
        /// 仓库ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long WarehouseId { get; set; }

        /// <summary>
        /// 仓库编号
        /// </summary>
        [SugarColumn(Length = 50)]
        public string WarehouseCode { get; set; }

        /// <summary>
        /// 仓库名称
        /// </summary>
        [SugarColumn(Length = 50)]
        public string WarehouseName { get; set; }

        /// <summary>
        /// 租赁时间
        /// </summary>
        public DateTime LeaseTime { get; set; }

        /// <summary>
        /// 仓库类型外键ID
        /// </summary>
        public int WarehouseTypeId { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsDisable { get; set; }

        /// <summary>
        /// 是否默认
        /// </summary>
        public bool IsDefault { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [SugarColumn(Length = 100)]
        public string WarehouseAddress { get; set; }

        /// <summary>
        /// 面积
        /// </summary>
        public decimal WarehouseArea { get; set; }

        /// <summary>
        /// 联系人
        /// </summary>
        [SugarColumn(Length = 30)]
        public string Contacts { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [SugarColumn(Length = 11)]
        public string Phone { get; set; }
    }
}
